package com.yikome.shop.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "s_nav_collection", indexes = {@Index(columnList = "navId") , @Index(columnList = "collectionId")})
public class NavigationCollection implements Serializable{

	private static final long serialVersionUID = 5861768610977119363L;

	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id ; 
	
	private Long navId ; 
	
	private Long collectionId ; 
	
	private Integer priority ; 
}
